package com.lch.distributed.serialize;

/**
 * @author: liuchenhui
 * @create: 2019-06-02 21:22
 **/
public interface ISerializer {

    <T> byte[] writeObject(T obj);

    <T> T readObject(byte[] data, Class<T> clazz);
}
